//
//  AttendeeView.swift
//  CleanArchitecture
//
//  Created by siri on 2024/11/13.
//  Copyright © 2024 Tuan Truong. All rights reserved.
//

import SwiftUI

struct AttendeeView: View {
    @State private var inputText: String = ""
    
    var body: some View {
        VStack {
            TextField("请输入姓名",text: $inputText)
                   .padding(10)
                   .padding(.horizontal, 25)
                   .background(Color.g_color_bg_grey)
                   .cornerRadius(8)
                   .overlay(
                       Image(systemName: "magnifyingglass")
                           .foregroundColor(.gray)
                           .frame(minWidth: /*@START_MENU_TOKEN@*/0/*@END_MENU_TOKEN@*/,maxWidth: .infinity,alignment: .leading).padding(.leading, 8 )
                   )
                   .padding(.horizontal,16)
       
                               

            
            HStack {
                AttendeeSideNav(areaCode: 0)
                Spacer()
                VStack {
                    AttendeeContent(infoCode: 1)
//                    AttendeeContent(infoCode: 1)
                }
               
            }
       
            ModalPage(content: {
                HStack(alignment: .center) {
                    Text("出席人员").font(Font.g_font_body_regular16)
                        .foregroundColor(Color.g_color_font_primary)
                    Text("(已选三人)").font(Font.g_font_description_regular14)
                        .foregroundColor(Color.g_color_theme)
                    Spacer()
                    ButtonPrimarySmall(label: "确认", action: {})
//                    Button(action: {
//                        
//                    }) {
//                        Text("确认")
//                    }
                }.padding(.top,30)
                    .padding(.horizontal,30)
            })
            Spacer()
        }
    }
}

#Preview {
    AttendeeView()
}
